home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Embed / Include / EmbedPxy.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  1.8 KB  |  69 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                EmbedPxy.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef EMBEDPROXY_H
  11. #define EMBEDPROXY_H
  12.  
  13. // ----- ODF Includes -----
  14.  
  15. #ifndef FWPROXY_H
  16. #include "FWProxy.h"
  17. #endif
  18.  
  19. #ifndef FWRECT_H
  20. #include "FWRect.h"
  21. #endif
  22.  
  23. //==============================================================================
  24. //    Forward declarations
  25. //==============================================================================
  26.  
  27. #if FW_LIB_EXPORT_PRAGMAS
  28. #pragma import on
  29. #endif
  30. class FW_CLASS_ATTR FW_CEmbeddingFrame;
  31. #if FW_LIB_EXPORT_PRAGMAS
  32. #pragma import off
  33. #endif
  34.  
  35. class FW_CLASS_ATTR CEmbedPart;
  36.  
  37. //==============================================================================
  38. //    class CEmbedProxy
  39. //==============================================================================
  40.  
  41. class FW_CLASS_ATTR CEmbedProxy : public FW_MProxy
  42. {
  43. //----------------------------------------------------------------------------------------
  44. //    Initialization/Destruction
  45. //
  46.   public:
  47.     CEmbedProxy(Environment* ev, CEmbedPart* part);
  48.     virtual ~ CEmbedProxy();
  49.  
  50. //----------------------------------------------------------------------------------------
  51. //    Inherited API
  52. //
  53.     virtual void         UsedShapeChanged(Environment* ev,
  54.                                   FW_CEmbeddingFrame* embeddingFrame,
  55.                                   ODFrame* odEmbeddedFrame);
  56.     
  57.     virtual ODShape*     FrameShapeRequested(Environment* ev, 
  58.                                         ODFrame* odEmbeddedFrame, 
  59.                                         ODShape* askedFrameShape);
  60.                                         
  61. //----------------------------------------------------------------------------------------
  62. //    Data Members
  63. //
  64. private:
  65.     CEmbedPart*            fPart;
  66. };
  67.  
  68. #endif
  69.